package com.chance.cc.crawler.development.command.publish.huanqiu;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.huanqiu.HuanqiuCrawlerScheduleJob;
import com.chance.cc.crawler.development.command.script.huanqiu.HuanqiuCrawlerScript;
import com.chance.cc.crawler.development.command.trigger.domain.huanqiu.HuanqiuScheduleTrigger;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2020/12/18 17:59
 * @Description
 *      环球网
 **/
public class HuanqiuPublishCrawlerJob {

    public static void main(String[] args) {
        publishCrawlerJob();
    }

    public static void publishCrawlerJob(){
        //发布采集job
        CrawlerJob crawlerJob = HuanqiuCrawlerScheduleJob.publishhuanqiuCrawlerScheduleJobInfo();
        HuanqiuScheduleTrigger.publishScheduleTriggerInfo(crawlerJob.generateCrawlerKey(), crawlerJob.generateCrawlerTriggerKey());
        HuanqiuCrawlerScript.publishCrawlerNodeScript();
    }
}
